package com.example.safeassistan.login.model;

import java.util.List;

public class LoginModel {


    /**
     * success : true
     * message : 登录成功
     * code : 200
     * result : {"multi_depart":2,"userInfo":{"id":"e9ca23d68d884d4ebb19d07889727dae","username":"admin","realname":"管理员","avatar":"https://static.jeecg.com/temp/国炬软件logo_1606575029126.png","birthday":"2018-12-05","sex":1,"email":"jeecg@163.com","phone":"18611111111","orgCode":"A04","orgCodeTxt":null,"status":1,"delFlag":0,"workNo":"00001","post":"总经理","telephone":null,"createBy":null,"createTime":"2019-06-21 17:54:10","updateBy":"admin","updateTime":"2021-04-13 19:08:45","activitiSync":1,"userIdentity":2,"departIds":"","relTenantIds":"","clientId":null},"departs":[{"id":"87c17549523d41108c87bd03b128a761","parentId":"","departName":"测试工厂","departNameEn":null,"departNameAbbr":null,"departOrder":0,"description":null,"orgCategory":"1","orgType":"1","orgCode":"A04","mobile":"15638943013","fax":null,"address":null,"memo":null,"status":null,"delFlag":"0","createBy":"dl001","createTime":"2021-04-10 17:38:12","updateBy":null,"updateTime":null},{"id":"d4650b8fc1224307b9a04a685dc02426","parentId":"87c17549523d41108c87bd03b128a761","departName":"厂房一","departNameEn":null,"departNameAbbr":null,"departOrder":0,"description":null,"orgCategory":"2","orgType":"2","orgCode":"A04A01","mobile":null,"fax":null,"address":null,"memo":null,"status":null,"delFlag":"0","createBy":"lisisi","createTime":"2021-04-10 17:43:29","updateBy":"lisisi","updateTime":"2021-04-10 17:43:47"}],"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MTg1NjU2MTEsInVzZXJuYW1lIjoiYWRtaW4ifQ.gVhJ6UgMDMcOVpCMZRwpyHCN8no8XqEw54Byo4bvmmc"}
     * timestamp : 1618457611178
     */

    private Boolean success;
    private String message;
    private Integer code;
    private ResultDTO result;
    private Long timestamp;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public static class ResultDTO {
        /**
         * multi_depart : 2
         * userInfo : {"id":"e9ca23d68d884d4ebb19d07889727dae","username":"admin","realname":"管理员","avatar":"https://static.jeecg.com/temp/国炬软件logo_1606575029126.png","birthday":"2018-12-05","sex":1,"email":"jeecg@163.com","phone":"18611111111","orgCode":"A04","orgCodeTxt":null,"status":1,"delFlag":0,"workNo":"00001","post":"总经理","telephone":null,"createBy":null,"createTime":"2019-06-21 17:54:10","updateBy":"admin","updateTime":"2021-04-13 19:08:45","activitiSync":1,"userIdentity":2,"departIds":"","relTenantIds":"","clientId":null}
         * departs : [{"id":"87c17549523d41108c87bd03b128a761","parentId":"","departName":"测试工厂","departNameEn":null,"departNameAbbr":null,"departOrder":0,"description":null,"orgCategory":"1","orgType":"1","orgCode":"A04","mobile":"15638943013","fax":null,"address":null,"memo":null,"status":null,"delFlag":"0","createBy":"dl001","createTime":"2021-04-10 17:38:12","updateBy":null,"updateTime":null},{"id":"d4650b8fc1224307b9a04a685dc02426","parentId":"87c17549523d41108c87bd03b128a761","departName":"厂房一","departNameEn":null,"departNameAbbr":null,"departOrder":0,"description":null,"orgCategory":"2","orgType":"2","orgCode":"A04A01","mobile":null,"fax":null,"address":null,"memo":null,"status":null,"delFlag":"0","createBy":"lisisi","createTime":"2021-04-10 17:43:29","updateBy":"lisisi","updateTime":"2021-04-10 17:43:47"}]
         * token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MTg1NjU2MTEsInVzZXJuYW1lIjoiYWRtaW4ifQ.gVhJ6UgMDMcOVpCMZRwpyHCN8no8XqEw54Byo4bvmmc
         */

        private Integer multi_depart;
        private UserInfoDTO userInfo;
        private String token;
        private List<DepartsDTO> departs;

        public Integer getMulti_depart() {
            return multi_depart;
        }

        public void setMulti_depart(Integer multi_depart) {
            this.multi_depart = multi_depart;
        }

        public UserInfoDTO getUserInfo() {
            return userInfo;
        }

        public void setUserInfo(UserInfoDTO userInfo) {
            this.userInfo = userInfo;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public List<DepartsDTO> getDeparts() {
            return departs;
        }

        public void setDeparts(List<DepartsDTO> departs) {
            this.departs = departs;
        }

        public static class UserInfoDTO {
            /**
             * id : e9ca23d68d884d4ebb19d07889727dae
             * username : admin
             * realname : 管理员
             * avatar : https://static.jeecg.com/temp/国炬软件logo_1606575029126.png
             * birthday : 2018-12-05
             * sex : 1
             * email : jeecg@163.com
             * phone : 18611111111
             * orgCode : A04
             * orgCodeTxt : null
             * status : 1
             * delFlag : 0
             * workNo : 00001
             * post : 总经理
             * telephone : null
             * createBy : null
             * createTime : 2019-06-21 17:54:10
             * updateBy : admin
             * updateTime : 2021-04-13 19:08:45
             * activitiSync : 1
             * userIdentity : 2
             * departIds :
             * relTenantIds :
             * clientId : null
             */

            private String id;
            private String username;
            private String realname;
            private String avatar;
            private String birthday;
            private Integer sex;
            private String email;
            private String phone;
            private String orgCode;
            private Object orgCodeTxt;
            private Integer status;
            private Integer delFlag;
            private String workNo;
            private String post;
            private Object telephone;
            private Object createBy;
            private String createTime;
            private String updateBy;
            private String updateTime;
            private Integer activitiSync;
            private Integer userIdentity;
            private String departIds;
            private String relTenantIds;
            private Object clientId;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getRealname() {
                return realname;
            }

            public void setRealname(String realname) {
                this.realname = realname;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getBirthday() {
                return birthday;
            }

            public void setBirthday(String birthday) {
                this.birthday = birthday;
            }

            public Integer getSex() {
                return sex;
            }

            public void setSex(Integer sex) {
                this.sex = sex;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getOrgCode() {
                return orgCode;
            }

            public void setOrgCode(String orgCode) {
                this.orgCode = orgCode;
            }

            public Object getOrgCodeTxt() {
                return orgCodeTxt;
            }

            public void setOrgCodeTxt(Object orgCodeTxt) {
                this.orgCodeTxt = orgCodeTxt;
            }

            public Integer getStatus() {
                return status;
            }

            public void setStatus(Integer status) {
                this.status = status;
            }

            public Integer getDelFlag() {
                return delFlag;
            }

            public void setDelFlag(Integer delFlag) {
                this.delFlag = delFlag;
            }

            public String getWorkNo() {
                return workNo;
            }

            public void setWorkNo(String workNo) {
                this.workNo = workNo;
            }

            public String getPost() {
                return post;
            }

            public void setPost(String post) {
                this.post = post;
            }

            public Object getTelephone() {
                return telephone;
            }

            public void setTelephone(Object telephone) {
                this.telephone = telephone;
            }

            public Object getCreateBy() {
                return createBy;
            }

            public void setCreateBy(Object createBy) {
                this.createBy = createBy;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(String updateBy) {
                this.updateBy = updateBy;
            }

            public String getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(String updateTime) {
                this.updateTime = updateTime;
            }

            public Integer getActivitiSync() {
                return activitiSync;
            }

            public void setActivitiSync(Integer activitiSync) {
                this.activitiSync = activitiSync;
            }

            public Integer getUserIdentity() {
                return userIdentity;
            }

            public void setUserIdentity(Integer userIdentity) {
                this.userIdentity = userIdentity;
            }

            public String getDepartIds() {
                return departIds;
            }

            public void setDepartIds(String departIds) {
                this.departIds = departIds;
            }

            public String getRelTenantIds() {
                return relTenantIds;
            }

            public void setRelTenantIds(String relTenantIds) {
                this.relTenantIds = relTenantIds;
            }

            public Object getClientId() {
                return clientId;
            }

            public void setClientId(Object clientId) {
                this.clientId = clientId;
            }
        }

        public static class DepartsDTO {
            /**
             * id : 87c17549523d41108c87bd03b128a761
             * parentId :
             * departName : 测试工厂
             * departNameEn : null
             * departNameAbbr : null
             * departOrder : 0
             * description : null
             * orgCategory : 1
             * orgType : 1
             * orgCode : A04
             * mobile : 15638943013
             * fax : null
             * address : null
             * memo : null
             * status : null
             * delFlag : 0
             * createBy : dl001
             * createTime : 2021-04-10 17:38:12
             * updateBy : null
             * updateTime : null
             */

            private String id;
            private String parentId;
            private String departName;
            private Object departNameEn;
            private Object departNameAbbr;
            private Integer departOrder;
            private Object description;
            private String orgCategory;
            private String orgType;
            private String orgCode;
            private String mobile;
            private Object fax;
            private Object address;
            private Object memo;
            private Object status;
            private String delFlag;
            private String createBy;
            private String createTime;
            private Object updateBy;
            private Object updateTime;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getParentId() {
                return parentId;
            }

            public void setParentId(String parentId) {
                this.parentId = parentId;
            }

            public String getDepartName() {
                return departName;
            }

            public void setDepartName(String departName) {
                this.departName = departName;
            }

            public Object getDepartNameEn() {
                return departNameEn;
            }

            public void setDepartNameEn(Object departNameEn) {
                this.departNameEn = departNameEn;
            }

            public Object getDepartNameAbbr() {
                return departNameAbbr;
            }

            public void setDepartNameAbbr(Object departNameAbbr) {
                this.departNameAbbr = departNameAbbr;
            }

            public Integer getDepartOrder() {
                return departOrder;
            }

            public void setDepartOrder(Integer departOrder) {
                this.departOrder = departOrder;
            }

            public Object getDescription() {
                return description;
            }

            public void setDescription(Object description) {
                this.description = description;
            }

            public String getOrgCategory() {
                return orgCategory;
            }

            public void setOrgCategory(String orgCategory) {
                this.orgCategory = orgCategory;
            }

            public String getOrgType() {
                return orgType;
            }

            public void setOrgType(String orgType) {
                this.orgType = orgType;
            }

            public String getOrgCode() {
                return orgCode;
            }

            public void setOrgCode(String orgCode) {
                this.orgCode = orgCode;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public Object getFax() {
                return fax;
            }

            public void setFax(Object fax) {
                this.fax = fax;
            }

            public Object getAddress() {
                return address;
            }

            public void setAddress(Object address) {
                this.address = address;
            }

            public Object getMemo() {
                return memo;
            }

            public void setMemo(Object memo) {
                this.memo = memo;
            }

            public Object getStatus() {
                return status;
            }

            public void setStatus(Object status) {
                this.status = status;
            }

            public String getDelFlag() {
                return delFlag;
            }

            public void setDelFlag(String delFlag) {
                this.delFlag = delFlag;
            }

            public String getCreateBy() {
                return createBy;
            }

            public void setCreateBy(String createBy) {
                this.createBy = createBy;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public Object getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(Object updateBy) {
                this.updateBy = updateBy;
            }

            public Object getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Object updateTime) {
                this.updateTime = updateTime;
            }
        }
    }
}
